let resJson2vueList = function (type,item) {
  let r = {
    id:item.id,
    media_Id:item.media_Id,
  };
  if(type == 1){
    r = Object.assign(r,{
      addTime : item.addTime,
      title : item.title,
    })
  }//文字
  if(type == 3){
    r = Object.assign(r,{
      imgUrl:item.imgUrl,
      title:item.title
    })
  }//图片
  if(type == 4){
    r = Object.assign(r,{
      imgUrl:item.imgUrl,
      videoUrl:item.video_Url,
      title:item.title,
      body:item.abstract,
    })
  }//视频
  if(type == 5){
    r = Object.assign(r,{
      title:item.title,
      addTime:item.addTime,
      size:item.file_Size,
      fileUrl:item.file_Url,
    })
  }//文件
  if(type == 2){
    r = Object.assign(r,{
      imgUrl:item.imageTextList[0].imgUrl,
      title:item.imageTextList[0].title,
      body:item.imageTextList[0].abstract,
    })
  }//图文
  return r;
}
export {
  resJson2vueList
}